package com.github.dabai.aggregation;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class AggregationFieldResult {
	protected String name;
	protected Object result;
	public AggregationFieldResult(String name, Object result) {
		this.name = name;
		this.result = result;
	}

	@SuppressWarnings("unchecked")
	public <T> T covert() {
		return (T)result;
	}
}
